package DesignPattern.decorator;

/**
 * @Author self
 * @Date 2025/7/13 11:26
 * @Describe
 */
// 抽象装饰器：也实现 Coffee 接口
abstract class CoffeeDecorator implements Coffee {
    protected Coffee decoratedCoffee;

    public CoffeeDecorator(Coffee coffee) {
        this.decoratedCoffee = coffee;
    }

    @Override
    public double cost() {
        return decoratedCoffee.cost();
    }

    @Override
    public String description() {
        return decoratedCoffee.description();
    }
}
